= simple_form_for([:admin, @user], html: { class: 'form-horizontal' }) do |f|
  = f.error_notification

  div class="col-sm-6"
    = f.input :user_name, label: '用户名'
    = f.input :admin, label: '管理权限'
    = f.association :department, label_method: :dpname, value_method: :id, include_blank: false, label: '所属机构'
    = f.input :password, label: '登录密码'
    = f.button :submit, '确定', class: "col-sm-offset-3 btn btn-primary", role: 'button'
